package com.cs.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "部门")
public class Department implements Serializable {


    @TableId(type = IdType.AUTO)
    @NotNull(message = "id不能为空")
    @ExcelProperty(value = "id", index = 0)
    private Integer id;

    @ApiModelProperty(value = "部门/名称")
    @ExcelProperty(value = "deptName", index = 1)
    @TableField(value = "deptName")
    private String deptName;

    @ExcelProperty(value = "createTime", index = 2)
    @TableField(value = "createTime")
    private Date createTime;

    //private List<Employee> employees;
}
